本文可以理解为FAQ,主要是为了大家GET一些技能,具体内容包括LICENSE、重置、Package Control的安装,其他内容以后可能补充...

最后说明一下自己的版本:Build 3114

LICENSE

提供网上流传已久的注册码,自我感觉是通用的。

—– BEGIN LICENSE —–
Anthony Sansone
Single User License
EA7E-878563
28B9A648 42B99D8A F2E3E9E0 16DE076E
E218B3DC F3606379 C33C1526 E8B58964
B2CB3F63 BDF901BE D31424D2 082891B5
F7058694 55FA46D8 EFC11878 0868F093
B17CAFE7 63A78881 86B78E38 0F146238
BAE22DBB D4EC71A1 0EC2E701 C7F9C648
5CF29CA3 1CB14285 19A46991 E9A98676
14FD4777 2D8A0AB6 A444EE0D CA009B54
—— END LICENSE ——

或者

—– BEGIN LICENSE —–
Alexey Plutalov
Single User License
EA7E-860776
3DC19CC1 134CDF23 504DC871 2DE5CE55
585DC8A6 253BB0D9 637C87A2 D8D0BA85
AAE574AD BA7D6DA9 2B9773F2 324C5DEF
17830A4E FBCF9D1D 182406E9 F883EA87
E585BBA1 2538C270 E2E857C2 194283CA
7234FF9E D0392F93 1D16E021 F1914917
63909E12 203C0169 3F08FFC8 86D06EA8
73DDAEF0 AC559F30 A6A67947 B60104C6
—— END LICENSE ——

重置

网址:http://www.sublimetext.com/do...

内容:

SUBLIME TEXT 3 DOCUMENTATION
Reverting to a Freshly Installed State
Sublime Text can be reverted to a freshly installed state by removing your data folder. Depending on your operating system, this folder is located in:

OS X: ~/Library/Application Support/Sublime Text 3
Windows: %APPDATA%\Sublime Text 3
Linux: ~/.config/sublime-text-3
To revert to a freshly installed state, you can:

Exit Sublime Text
Move the data folder to a backup location
Start Sublime Text
When restarted, a fresh data folder will be created, just as it was the first time you ran Sublime Text. Keep in mind that this will also remove all of your settings and packages. The backup copy of your data folder can be used to retrieve configuration, or custom packages that can not be reinstalled.

OS X
On OS X, the ~/Library folder is hidden by default. To navigate there, select the Go ▸ Go to Folder menu item in Finder, and type in ~/Library.

鼠标点击Finder后,按快捷键control+shift+g,在出现的弹框中输入正确的完整路径即可直接到达

Windows
In Windows, cache files are stored in a separate location, %LOCALAPPDATA%\Sublime Text 3, to improve performance with roaming profiles.

安装Package Control

自动安装

使用快捷键control+`或通过菜单选项View > Show Console进入控制台Console(再进行一次同样的操作,可以退出控制台Console)。

复制其中一个命令,粘贴到控制台中,回车运行,如果失败就换另一个,如果都失败,请选择手动安装方式。

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

或者

import  urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

手动安装

  1. 打开网址会自动下载名为Package%20Control.sublime-package的文件。

  2. 打开Sublime Text 3,选择菜单Preferences->Browse Packages... 打开安装目录

  3. 此时会进入到一个叫做Packages的目录下,点击进入上一层目录Sublime Text 3,在此目录下有一个文件夹叫做Installed Packages,把刚才下载的文件放到这里就可以了。

  4. 重启sublime text3,观察Preferences菜单最下边是否有Package Settings 和Package Control两个选项,如果有,则代表安装成功了。

  5. 此时使用快捷键control+shift+p,输入ip,选择Package Control: Install Package,回车,等一会,之后想安装什么插件,在里面搜索名字就可以了。

注意点:

需要注意的一点是,经常会出现网络联不通的情况,不要着急,这个很正常,如果出现,隔一会再弄,一般都会好的。


风清袖一
56 声望5 粉丝

温故而知新


« 上一篇
layout转Bitmap
下一篇 »
TextView

引用和评论

0 条评论